package com.xhtt.modules.cfg.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 装卸船报警
 * Created by xj
 * 2019/05/24 10:59
 **/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class CfgWarnShip extends Model<CfgWarnShip> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

//    private Integer planTaskType;
//
//    private String shipName;

    private Integer time1;
    private Integer time2;

    private String memo;

    private LocalDateTime createTime;

    @TableField(update = "now()")
    private LocalDateTime updateTime;

    private Integer createUserId;

    private Integer updateUserId;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
